import {
	createStore
} from 'vuex'

const store = createStore({
	state() {
		return {
			// 用户信息
			userInfo: {},
			lang: '',
		}
	},
	mutations: {
		// 设置用户信息
		setUserInfo(state, params) {
			state.userInfo = params
		},
		// 设置用户信息
		setLang(state, params) {
			state.lang = params
		},
	},
	actions: {},
	getters: {}
})

export default store